package dailyProgram;

import java.util.Scanner;

public class numberSum {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入num1：");
		int num1 = sc.nextInt();
		System.out.println("请输入num2：");
		int num2 = sc.nextInt();
		int sum=0,plus=num1;
		for(int i=0;i<num2;i++) {
			sum+=plus;
			num1*=10;
			plus+=num1;
		}
		System.out.println(sum);
	}
}
